<?php
return array (
  'createPost' => 
      array (
        'type' => 0,
        'description' => 'create a post',
        'bizRule' => NULL,
        'data' => NULL,
      ),
  'readPost' => 
      array (
        'type' => 0,
        'description' => 'read a post',
        'bizRule' => NULL,
        'data' => NULL,
      ),
  'updatePost' => 
      array (
        'type' => 0,
        'description' => 'update a post',
        'bizRule' => NULL,
        'data' => NULL,
      ),
  'deletePost' => 
      array (
        'type' => 0,
        'description' => 'delete a post',
        'bizRule' => NULL,
        'data' => NULL,
      ),
  'editPost' => 
      array (
        'type' => 1,
        'description' => 'edit a post by author himself',
        'bizRule' => 'return Yii::app()->user->id==$params;',
        'data' => NULL,
        'children' => 
            array (
              0 => 'updatePost',
              1 => 'deletePost',
              2 => 'readPost',
            ),
      ),
  'editor' => 
  array (
    'type' => 2,
    'description' => '',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'editPost',
    ),
    'assignments' => 
    array (
      2 => 
      array (
        'bizRule' => NULL,
        'data' => NULL,
      ),
      3 => 
      array (
        'bizRule' => NULL,
        'data' => NULL,
      ),
    ),
  ),
  'admin' => 
  array (
    'type' => 2,
    'description' => '',
    'bizRule' => NULL,
    'data' => NULL,
    'children' => 
    array (
      0 => 'editor',
    ),
    'assignments' => 
    array (
      1 => 
      array (
        'bizRule' => NULL,
        'data' => NULL,
      ),
    ),
  ),
);
